import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity({
  name: "t_aaa",
})
export class Aaa {
  @PrimaryGeneratedColumn({
    comment: "这是 id",
    type: "int",
  })
  id: number;

  @Column({
    name: "a_aa",
    type: "text",
    comment: "这是 文本",
  })
  aaa: string;

  @Column({
    unique: true,
    nullable: false,
    length: 10,
    type: "varchar",
    default: "xxx",
  })
  bbb: string;

  @Column({
    type: "double",
  })
  ccc: number;
}
